package com.yun.zf.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yun.zf.common.admin.domain.SysRoleMenu;
import com.yun.zf.system.mapper.SysRoleMenuMapper;
import com.yun.zf.system.service.ISysRoleMenuService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ISysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRoleMenu> implements ISysRoleMenuService {
    @Override
    public List<Object> getMenuIds(long roleId) {
        QueryWrapper<SysRoleMenu> roleMenuQueryWrapper = new QueryWrapper<>();
        roleMenuQueryWrapper.select("menu_id").eq("role_id",roleId);
    return baseMapper.selectObjs(roleMenuQueryWrapper);
    }
}
